//
//  MLXCrashProtectHandler.m
//  Pods-MLXCrashProtectHandler
//
//  Created by SY on 2018/12/14.
//

#import "MLXCrashProtectHandler.h"
static id<MLXCrashProtectHandlerDelegate> crashProtectHandlerDelegate;
@interface MLXCrashProtectHandler()

@end

@implementation MLXCrashProtectHandler
+(void)crashMessages:(NSString *)crashMessages{
    if (crashProtectHandlerDelegate && [crashProtectHandlerDelegate respondsToSelector:@selector(crashProtectCollectCrashMessages:)]) {
        [crashProtectHandlerDelegate crashProtectCollectCrashMessages:crashMessages];
    }
}
+(void)crashProtectHandlerDelegate:(id<MLXCrashProtectHandlerDelegate>)delegate{
    crashProtectHandlerDelegate = delegate;
}
@end
